<template>
	<view class="dynamic_page">
		<view>123</view>
		<view>123</view>
		<view>123</view>
		<view>123</view>
		<view class="search">
			<search_module :params="search_info" />
		</view>
		
	</view>
</template>

<script>
import search_module from '@/components/dynamicPageModule/module/search_module.vue'
export default {
	components: {
		search_module,
	},
	data() {
		return {
			search_info: {
				hot_word: ['热词一', '热词二', '热词三']
			}
		}
	},
	
	// 页面加载函数
	onLoad() {
		uni.setNavigationBarTitle({
			title: '动态页面'
		})
	},
	
	// 下拉刷新函数
	onPullDownRefresh() {
		console.log('下拉刷新')
		setTimeout(function() {
			uni.stopPullDownRefresh()
		}, 1500)
	},
	
	// 上拉触底函数
	onReachBottom() {
		console.log('上拉触底')
	},
	
	methods: {
		
	}
}
</script>

<style scoped>
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	list-style: none;
	font-size: 24upx;
}
.dynamic_page{
	background-color: #FDDDE3;
	width: 100%;
}
.search{
	position: absolute;
	top: 20upx;
	left: 10%;
	width: 80%;
	z-index: 10;
}
</style>
